#ifndef QMYLISTVIEW_H
#define QMYLISTVIEW_H

#include "../../lib/shared/qobjecthost.h"

#include <QListWidget>

class QListViewHost: public QObjectHost
{
    Q_OBJECT
public:
    QListViewHost(QWidget* wid);
public slots:
    int     currentRow();
signals:
    void    addItem(const QString &text);
    void    insertItem(int index,const QString &text);
    void    removeItem(int index);
    void    setCurrentRow(int index);
};


class QMyListView : public QListWidget
{
    Q_OBJECT
public:
    QMyListView(QWidget *parent=0);
public slots:
    void    updateProperty(const QString & name);
    void    updatePropertyAttribute();
    void    initProperty();

    void    addItem(const QString &text);
    void    insertItem(int index,const QString &text);
    void    removeItem(int index);
    void    setCurrentRow(int index);
signals:
    void    zValueChanged();
protected:
    QObjectHost     *m_host;
};

#endif // QMYLISTVIEW_H
